home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Jun 89 / V0090-DimState for popUp -Jun89 < prev    next >
Encoding:
Text File  |  1989-07-12  |  846 b   |  30 lines  |  [TEXT/GEOL]

  1. Item    0485945                         28-June-89        18:25
  2.  
  3. From:   D2215                           Dac SW, Wilma Blair, PRT
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    DimState for popUp menu
  8.  
  9. If I dim a popup menu by         aPopup.DimState (true, true), it gets dimmed, but a
  10. mousePress at its location causes it to become active and non-dim.
  11.  
  12. I think that popup menus should function just like buttons, which when dimmed
  13. will not allow you to push them and make them active.
  14.  
  15. Would the proper fix be to override TPopup.DimState as:
  16.  
  17. PROCEDURE TPopup.DimState (state, redraw: BOOLEAN);
  18. BEGIN
  19.     fViewEnabled:= NOT state;
  20.     INHERITED DimState (state, redraw);
  21. END;
  22.  
  23. or should this be done at the TControl level (I have not checked that dimming
  24. other dialog types actually disables them).
  25.  
  26. Regards, Les Caudle
  27.  
  28.  
  29.  
  30.